import Vue from 'vue'
import Router from 'vue-router'
//项目导航
import ProjectLeftNav from '@/module/ProjectLeftNav'
//通用开发管理导航
import CommonLeftNav from '@/module/CommonLeftNav'
//系统设置
import SettingLeftNav from '@/module/SettingLeftNav'



import Home from '@/pages/Home'
//未开发的页面路由
import NodoPage from '@/pages/NodoPage'

//通用开发管理首页
import HomeCommon from '@/pages/HomeCommon'
//项目开发管理首页
import HomeProject from '@/pages/HomeProject'
import Edit from '@/pages/edit'
import Article from '@/pages/Article'
import AddProject from '@/pages/project/AddProject'
import AddStandard from '@/pages/standard/addStandard'

import AddInterface from '@/pages/interface/addInterface'
import QueryInterface from '@/pages/interface/queryInterface'
import ShowInterface from '@/pages/interface/showInterface'
import EditInterface from '@/pages/interface/editInterface'

import QueryStandard from '@/pages/standard/queryStandard'
import ShowStandard from '@/pages/standard/showStandard'
import EditStandard from '@/pages/standard/editStandard'

//项目模块
import AddModule from '@/pages/module/addModule'
import EditModule from '@/pages/module/editModule'
import QueryModule from '@/pages/module/queryModule'

//系统设置
import AddUser from '@/pages/user/addUser'



Vue.use(Router)

export default new Router({
  routes: [
    /**
     * 首页路由
     */
    {path: '/',          name: '主页',           components: {default:HomeProject,left:ProjectLeftNav}               },
    {path: '/nodo',      name: '未开发',         components: {default:NodoPage,left:ProjectLeftNav}               },

    /**
     * 项目开发管理路由配置
     */
    {path: '/projectHome',          name: '主页',           components: {default:HomeProject,left:ProjectLeftNav}               },
    {path: '/eidt',                 name: '编辑',           components: {default:Edit,left:ProjectLeftNav}               },
    {path: '/artitle',              name: '文章',           components: {default:Article,left:ProjectLeftNav}            },
    {path: '/addProject',           name: '新增项目',       components: {default:AddProject,left:ProjectLeftNav}         },

    {path: '/addStandard',          name: '新增规范',       components: {default:AddStandard,left:ProjectLeftNav}        },
    {path: '/queryStandard',        name: '规范查询',       components: {default:QueryStandard,left:ProjectLeftNav}      },
    {path: '/showStandard',         name: '展示规范',       components: {default:ShowStandard,left:ProjectLeftNav},      props: true       },
    {path: '/editStandard',         name: '编辑规范',       components: {default:EditStandard,left:ProjectLeftNav},      props: true       },

    {path: '/addInterface',         name: '新增接口',       components: {default:AddInterface,left:ProjectLeftNav}       },
    {path: '/queryInterface',       name: '接口查询',       components: {default:QueryInterface,left:ProjectLeftNav}       },
    {path: '/showInterface',        name: '展现接口',       components: {default:ShowInterface,left:ProjectLeftNav}       },
    {path: '/editInterface',        name: '编辑接口',       components: {default:EditInterface,left:ProjectLeftNav}       },

    {path: '/addModule',            name: '新增模块',       components: {default:AddModule,left:ProjectLeftNav}     },
    {path: '/queryModule',          name: '模块总览',       components: {default:QueryModule,left:ProjectLeftNav}       },
    {path: '/editModule',           name: '编辑模块',       components: {default:EditModule,left:ProjectLeftNav}       },
    /**
     * 通用开发管理路由配置 CommonLeftNav
     */
    {path: '/commonHome',        name: '通用开发',       components: {default:HomeCommon,left:CommonLeftNav}       },

    /**
     *  系统设置路由
     */
    {path: '/settingHome',        name: '通用开发',       components: {default:HomeCommon,left:SettingLeftNav}       },
    {path: '/addUser',            name: '新增用户',       components: {default:AddUser,left:SettingLeftNav}       },



  ]
})
